import {createApp} from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import './utils/rem'
const app = (window.$app = createApp(App));

import api from "@/api/index";

app.config.globalProperties.$api = api;
import util from "./utils/util";

app.config.globalProperties.$util = util;
import Mixin from "./assets/mixin";

app.mixin(Mixin); //注册全局Mixin

import useVant from "./plugin/vant";//注册vant
useVant(app)

import vuels from "./utils/vue-ls";//注册vuels
vuels.useVuels(app)


app.use(store).use(router).mount("#app");
